Email

data class Email(val emailSettings: NavigationSpec.Email.EmailSettings, val delegate: <Error class: unknown class>? = null, val animated: Boolean = false, val completion: () -> Unit? = null) : NavigationSpec

Presents a MFMailComposeViewController

Parameters

emailSettings

EmailSettings for composing the email

delegate

Optional MFMailComposeViewControllerDelegateProtocol added to the MFMailComposeViewController

animated

Specifies whether the transition should be animated

completion

Optional function called when presentation is completed

Constructors

Link copied to clipboard
constructor(emailSettings: NavigationSpec.Email.EmailSettings, delegate: <Error class: unknown class>? = null, animated: Boolean = false, completion: () -> Unit? = null)

Types

Link copied to clipboard
data class Attachment(val data: <Error class: unknown class>, val mimeType: String, val fileName: String)

An attachment added to the email

Link copied to clipboard
data class EmailSettings(val type: NavigationSpec.Email.Type = Type.Plain, val to: List<String> = emptyList(), val cc: List<String> = emptyList(), val bcc: List<String> = emptyList(), val subject: String? = null, val body: String? = null, val attachments: List<NavigationSpec.Email.Attachment> = emptyList())

Settings for composing the email

Link copied to clipboard
sealed class Type

The type of formatting used for composing the email

Properties

Link copied to clipboard
val animated: Boolean = false
Link copied to clipboard
val completion: () -> Unit? = null
Link copied to clipboard
val delegate: <Error class: unknown class>? = null